<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>定时任务-主页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/layuimini/lib/layui-v2.6.3/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/layuimini/css/public.css}" media="all">
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <input id="quartzId" name="quartzId" type="hidden" th:value="${quartzId}"/>
        <!-- 数据表格 -->
        <table class="layui-hide" id="quartzLogList" lay-filter="quartzLogListFilter"></table>
    </div>
</div>
<script th:src="@{/layuimini/lib/layui-v2.6.3/layui.js}" charset="utf-8"></script>
<script type="text/javascript" th:inline="javascript">
    layui.use(['form', 'table'], function () {
        let $ = layui.jquery,
            table = layui.table;

        let ctxPath = /*[[@{/}]]*/'';

        //渲染表格
        let tableIns = table.render({
            elem: '#quartzLogList',
            url: ctxPath+'system/sysQuartzLog/quartzLogList?quartzId='+$('#quartzId').val(),
            title:'日志信息',
            height: 'full-100',
            method : 'GET',
            defaultToolbar: false,
            cols: [
                [
                    {field: 'quartzId', width: 180, title: '任务ID',align:'center'},
                    {field: 'execTime', width: 180, title: '执行时间',align:'center',sort:true},
                    {field: 'execStatus', width: 110, title: '执行状态',align:'center',sort:true, templet:function(d){
                            return (0 === d.execStatus) ? '执行成功' : '执行失败'
                    }},
                    {field: 'execDesc', width: 400, title: '执行描述',align:'center'},
                    {field: 'quartzParam', width: 300, title: '执行参数',align:'center'}
                ]
            ],
            page: true,
            limits: [10, 15, 20, 25, 50, 100],
            limit: 15
        });
    });
</script>
</body>
</html>